Frameworkless Front-End Development by Francesco Strazzullo

Frameworkless Front-End Development by Francesco Strazzullo

Author:Francesco Strazzullo
Language: eng
Format: epub
ISBN: 9781484249673
Publisher: Apress


Code Examples

We are going to create three different HTTP clients with three different technologies: XMLHttpRequest, Fetch, and axios. We will analyze each client’s strengths and weaknesses.

The Basic Structure

To show how our HTTP clients work, we will always use the same simple application that is shown in Figure 5-2. To keep the focus on the HTTP client, we are not going to use a TodoMVC application, but a simpler application with buttons that execute the HTTP requests and print the result on the screen. The code for this application (and the other implementations) is at https://github.com/Apress/frameworkless-front-end-development/tree/master/Chapter05/ .

Figure 5-2The application used to test the HTTP clients



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.